#include <stdio.h>
#include <unistd.h>

int main(void)
{
    char computer[100];
    int status;

    status = gethostname(computer, 100);
    printf("The status is %d\n", status);
    printf("The hostname is: %s\n", computer);
}
